package object;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/1
 **/
public class ObjectDemo {
    public static void main(String[] args) {
        Point p = new Point(100,200);
        Point p1 = new Point(100,200);
        System.out.println(p==p1);
        System.out.println(p.equals(p1));



        StringBuilder builder = new StringBuilder("HE");
        StringBuilder builder1 = new StringBuilder("HE");
        System.out.println(builder.equals(builder1));//false








        /*
        Point p = new Point(100,200);
        System.out.println(p);

         */

    }
}
